﻿using SqlSugar;

namespace EasyBuyShop.Models
{

    [SugarTable("EB_Address")]
    public class Address : EntityModel
    {
        public long UserId { get; set; }
        public string Country { get; set; }
        public string Province { get; set; }
        public string City { get; set; }
        public string District { get; set; }
        public string Street { get; set; }
        public string Detail { get; set; }
        public bool IsDefault { get; set; }

        public string Name { get; set; }

        public string Phone { get; set; }

        public override string ToString()
        {
            return $"{Country} {Province} {City} {District} {Street} {Detail}";
        }
    }
}
